<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>用户管理</title>
    <hdjs/>
    <bootstrap/>
</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
   			<tr>
				<td width="100">用户id</td>
				<td>用户名</td>
				<td width="100">是否锁定</td>
				<td width="150">操作</td>
			</tr>
        </thead>
        <tbody>
            <foreach from="$user" value="$v">
			<tr>
				<td width="100">{$v.uid}</td>
				<td>{$v.username}</td>
				<td width="100">
                    <if value="$v['is_lock'] eq 1">
                        <a href="javascript:;"class="glyphicon glyphicon-ok" onclick="hd_ajax('{|U:'User/ajax_lock'}',{uid : {$v.uid},stat:1})">
                    <else/>
                        <a href="javascript:;" class="glyphicon glyphicon-remove" onclick="hd_ajax('{|U:'User/ajax_lock'}',{uid : {$v.uid},stat:0})"></a>
                    </if>            
                </td>
				<td width="150">
                    <a href="javascript:;" class="btn btn-danger btn-xs"onclick="if(confirm('确定删除吗？')) location.href='{|U:'User/dele',array('uid'=>$v['uid'])}'">删除</a>      
                </td>
			</tr>
            </foreach>
        </tbody>
    </table>
    <div class="page_hdjob">
        
    </div>
</div>

</body>
</html>